﻿using DFGK_WMS.Model.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace DFGK.IService
{
    public interface IStationService
    {
        /// <summary>
        /// 添加站台信息
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        bool AddStation(Station obj, out string message);
        /// <summary>
        /// 修改站台信息
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        bool UpdStation(Station obj, out string message);
        /// <summary>
        /// 删除站台信息
        /// </summary>
        /// <param name="uid"></param>
        /// <returns></returns>
        bool DelStation(long id);
        /// <summary>
        /// 显示站台信息
        /// </summary>
        /// <param name="zcode"></param>
        /// <param name="zname"></param>
        /// <param name="kid"></param>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <param name="totalCount"></param>
        /// <returns></returns>
        List<Station> GetStationList(string? cname, long kid, int pageIndex, int pageSize, out int totalCount);

        /// <summary>
        /// 根据id获取站台信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Station? GetStationById(long id);

        /// <summary>
        /// 出库时获取站台
        /// </summary>
        /// <param name="type"></param>
        /// <returns></returns>
        List<Station> GetShippingOrderDetailStation(int type);
    }
}
